/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询 /ttFiRebateRedApply/listRecord	POST
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateRedApply/listRecord`, params)

// 详情	 /ttFiRebateRedApply/getByApplyId?id=1	GET
export const detailInfo = (Id) => axios.get(`${SERVER.WHOLESALES}/ttFiRebateRedApply/getByApplyId?id=${Id}`)

// 新增/编辑	 /ttFiRebateRedApply/save	POST
export const saveData = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateRedApply/save`, params)

// xlsx文件上传	 /ttFiRebateRedApply/upload	POST
export const uploadFile = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateRedApply/upload`, params)
//获取经销商余额池
export const getAmount = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiRebateRedApply/getRebateAmount`, {params})
// 提交
export const batchUpdateStauts = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateRedApply/batchUpdateStauts`, params)
